package com.cc.service.impl;

import com.cc.dao.StudentDao;
import com.cc.poko.Student;
import com.cc.service.StudentService;

/**
 * @author cc
 * @date 2021/8/11 22:55
 * @Description
 */

public class StudentServiceImpl implements StudentService {
    StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public Student Findbyid(String id) {
        return studentDao.Findbyid(id);
    }

    @Override
    public int addstudent(Student student) {

        return studentDao.addstudent(student);
    }

    @Override
    public int delectStudnet(String id) {
        return studentDao.delectStudnet(id);
    }

    @Override
    public int updateStudent(Student student) {
        return studentDao.updateStudent(student);
    }
}
